﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;

/// <summary>
/// 脚本在Canvas上挂载，有这么几行代码 背包就能自适应屏幕大小
/// </summary>
public class HandleCanvas : MonoBehaviour {

	private CanvasScaler scaler;

	// Use this for initialization
	void Start () {
		scaler = GetComponent<CanvasScaler> ();
		scaler.uiScaleMode = CanvasScaler.ScaleMode.ScaleWithScreenSize;
	}

	// Update is called once per frame
	void Update () {

	}
}
